FROM golang:latest

WORKDIR $GOPATH/src/gitee.com/wang-hao-gitee/gin-wheel
COPY . $GOPATH/src/gitee.com/wang-hao-gitee/gin-wheel
ENV GO111MODULE=on
ENV GOPROXY=https://goproxy.cn
RUN go build cmd/api/main.go

EXPOSE 20191
ENTRYPOINT ["./main"]